<?php
class Form_activecode_add extends QForm
{
	function __construct($action)
	{
		parent::__construct(__CLASS__,$action);
		// 从配置文件载入表单
		$filename = rtrim(dirname(__FILE__), '/\\') . DS . strtolower(__CLASS__).'.yaml';
		
		$this->loadFromConfig(Helper_YAML::loadCached($filename));
		
		$this->addValidations(activecode::meta());
	}
}

?>